import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { YlistComponent } from './ylist/ylist.component';
import { CarouselModule } from 'ngx-bootstrap/carousel';
import { YuSliderComponent } from './yu-slider/yu-slider.component';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import { DataTablesModule } from 'angular-datatables';

import { StudentlistComponent } from './student/Student-list.component';
import { StudentcreateComponent } from './student/Student-create.component';
import { StudentdetailComponent } from './student/Student-detail.component';
import { StudentcurdComponent } from './student/Student-curd.component';
import { HttpClientModule } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import {MaterialAppModule} from './ngmaterial.module';
import { ModalModule } from 'ngx-bootstrap/modal';



@NgModule({
  declarations: [
    AppComponent,
    YlistComponent,
    YuSliderComponent,
    StudentcurdComponent,
    StudentlistComponent,
    StudentcreateComponent,
    StudentdetailComponent
  ],
  imports: [
    FormsModule,
    ReactiveFormsModule,
    BrowserModule,
    AppRoutingModule,
    CarouselModule.forRoot(),
    DataTablesModule,
    HttpClientModule,
    BrowserAnimationsModule,
    MaterialAppModule,
    ModalModule.forRoot(),
  ],
  entryComponents:[
    StudentcreateComponent,
    StudentdetailComponent,
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
